﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class OwnerInfo
    {
        public int ID { get; set; }
        public string OwnerName { get; set; } = string.Empty;
        public int OwnerType { get; set; }
        public int RoomID { get; set; } = 0;
        public int ParentID { get; set; }
        public string CardNO { get; set; } = string.Empty;
        public string Phone { get; set; } = string.Empty;
        public string CertificateNO { get; set; } = string.Empty;
        public string PicturePath { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string RoomName { get; set; } = string.Empty;
        public string BuildingName { get; set; } = string.Empty;
        public int BuildID { get; set; }
        public string OwnerTypeName { get; set; } = string.Empty;
        public int VirtualCard { get; set; }
        public int CopyID { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public string MaxTime { get; set; } = string.Empty;
        public int projectID { get; set; }
        public int IsDelete { get; set; }
        public string PhotoData { get; set; } = string.Empty;
        public int auditrecordid { get; set; }
    }

    public class SyncOwnerInfo
    {
        public string OwnerName { get; set; } = string.Empty;
        public int OwnerType { get; set; }
        public string UUID { get; set; } = string.Empty;
        public int RoomID { get; set; } = 0;
        public string CardNO { get; set; } = string.Empty;
        public string Phone { get; set; } = string.Empty;
        public string CertificateNO { get; set; } = string.Empty;
        public string projectcode { get; set; }
        public string PhotoData { get; set; } = string.Empty;
    }

    public class DeleteSyncOwnerInfo
    {
        public string UUID { get; set; } = string.Empty;
        public string projectcode { get; set; }
    }

    public class OwnerType
    {
        public int ID { get; set; }
        public string OwnerTypeName { get; set; }
        public int IsType { get; set; }
    }

    public class GetCardNO
    {

        public string CardNO { get; set; }

    }
    public class ReturnMsg
    {
        public int code { get; set; }
        public string message { get; set; }
    }

    public class OwnerChildInfo
    {
        public int ID { get; set; }
        public string OwnerName { get; set; } = string.Empty;
        public int OwnerType { get; set; }
        public int RoomID { get; set; }
        public int ParentID { get; set; }
        public string CardNO { get; set; } = string.Empty;
        public string Phone { get; set; } = string.Empty;
        public string CertificateNO { get; set; } = string.Empty;
        public string PicturePath { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string RoomName { get; set; } = string.Empty;
        public string BuildingName { get; set; } = string.Empty;
        public int BuildID { get; set; }
        public string OwnerTypeName { get; set; } = string.Empty;
        public int VirtualCard { get; set; }
    }
}
